﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="editarUsuario.aspx.cs" Inherits="qbaproject.Usuario.Editar.editarUsuario" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="page-wrapper">
		<div id="main-wrapper">
			<div id="main-content">
                <asp:HiddenField ID="hdfIdUsuario" runat="server" />
                <div class="title title-spacing">
					<h2>Usuários</h2>
                    Editar usuário.
				</div>
                <div class="response-msg success ui-corner-all" runat="server" id="divMsnEditarSucesso" visible="false">
					<span>Sucesso!</span>
					Usuário atualizado com sucesso.
				</div>
                <div class="response-msg error ui-corner-all" runat="server" id="divMsnEditarAtencao" visible="false">
					<span>Atenção!</span>
					Ocorreu algum erro na atualização do cadastro.
				</div>
                <div style="height:30px;">
                    <asp:LinkButton ID="lnk" CssClass="btn ui-state-default ui-corner-all" runat="server" onclick="lnk_Click" ><span class="ui-icon ui-icon-back"></span>Voltar a pesquisa</asp:LinkButton>
                </div>
                <div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all form-container">
					<div class="portlet-header ui-widget-header">Atualizar usuário</div>
					<div class="portlet-content">
					    <ul>
					        <li>
							    <label  class="desc">
								    Nome do usuário* (ex. itgirl2012)
							    </label>
                                 
							    <div>
                                    <asp:TextBox ID="txtNmUsuario" MaxLength="255" CssClass="field text small" runat="server" Text=""></asp:TextBox>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblNmUsuarioObrigatorio" ForeColor="Red" />
                                </div>
						    </li>
						    <li>
							    <label  class="desc">
								    Primeiro nome*
							    </label>
                                 
							    <div>
                                    <asp:TextBox ID="txtTeNome" MaxLength="255" CssClass="field text small" runat="server" Text=""></asp:TextBox>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblTeNomeObrigatorio" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
							    <label  class="desc">
								    Sobrenome*
							    </label>
                                 
							    <div>
                                    <asp:TextBox ID="txtTeSobrenome" MaxLength="255" CssClass="field text small" runat="server" Text=""></asp:TextBox>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblTeSobrenomeObrigatorio" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
							    <label  class="desc">
								    Sexo*
							    </label>
                                 
							    <div>
							        
                                    <asp:RadioButtonList ID="rblCsSexo" runat="server">
                                        <asp:ListItem Value="M" Text="Masculino" > </asp:ListItem>
                                        <asp:ListItem Value="F" Text="Feminino"> </asp:ListItem>
                                    </asp:RadioButtonList> 
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblCsSexoObrigatorio" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
							    <label  class="desc">
								    Data de nascimento
							    </label>
							    <div>
                                    <asp:TextBox ID="txtDtNascimento"  MaxLength="255" CssClass="field text small" runat="server" Text=""></asp:TextBox>
                                            
                                    <asp:Image ID="imgCalendario" ImageUrl="calendar-icon.png" runat="server" />
                                    <ajaxToolkit:MaskedEditExtender  TargetControlID="txtDtNascimento" MaskType="Date" Mask="99/99/9999" 
                                    ClearMaskOnLostFocus="False" ID="MaskedEditExtender1" runat="server">
                                    </ajaxToolkit:MaskedEditExtender >
                                    <ajaxToolkit:CalendarExtender ID="CalendarExtender1"  PopupButtonID="imgCalendario" TargetControlID="txtDtNascimento" runat="server" Format="dd/MM/yyyy">
                                    </ajaxToolkit:CalendarExtender>
                                            
							    </div>
						    </li>

                            <li>
                                <label  class="desc">
								    Descrição*
							    </label>
                                <div>
                                    <asp:TextBox ID="txtDsUsuario" TextMode="MultiLine" Rows="5" Columns="28"
                                        CssClass="field text medium" runat="server" Text="" ></asp:TextBox>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDsUsuarioObrigatoria" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
                                <label  class="desc">
								    E-mail*
							    </label>
                                <div>
                                    <asp:TextBox ID="txtTeEmail" CssClass="field text medium" runat="server" Text="" ></asp:TextBox>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblTeEmailObrigatorio" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
                                <label  class="desc">
								    Site
							    </label>
                                <div>
                                    <asp:TextBox ID="txtTeUrl" CssClass="field text medium" runat="server" Text="" ></asp:TextBox>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblTeUrlObrigatoria" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
                                <label  class="desc">
								    Foto
							    </label>
                                <div>
                                    <asp:FileUpload ID="txtTeFoto" runat="server" />
                                    <asp:Image ID="imgTeFoto" runat="server"  />
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblTeFotoObrigatoria" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
                                <label  class="desc">
								    Tipo de pele*
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlTiposPele" DataValueField="id_tipo_pele" DataTextField="nm_tipo_pele" runat="server" CssClass="field">
                                    </asp:DropDownList>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDdlTipoPeleObrigatoria" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    Cor de pele*
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlCoresPele" DataValueField="id_cor_pele" DataTextField="nm_cor_pele" runat="server" CssClass="field">
                                    </asp:DropDownList>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDdlCorPeleObrigatoria" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    Tipo de cabelo*
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlTiposCabelo" DataValueField="id_tipo_cabelo" DataTextField="nm_tipo_cabelo" runat="server" CssClass="field">
                                    </asp:DropDownList>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDdlTipoCabeloObrigatoria" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    Cor de cabelo*
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlCoresCabelo" DataValueField="id_cor_cabelo" DataTextField="nm_cor_cabelo" runat="server" CssClass="field">
                                    </asp:DropDownList>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDdlCorCabeloObrigatoria" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    Perfil de compra*
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlPerfisCompra" DataValueField="id_perfil_compra" DataTextField="nm_perfil_compra" runat="server" CssClass="field">
                                    </asp:DropDownList>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDdlPerfilCompraObrigatoria" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    Tipo de usuário*
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlTiposUsuarios" DataValueField="id_tipo_usuario" DataTextField="ds_tipo_usuario" runat="server" CssClass="field">
                                    </asp:DropDownList>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDdlTipoUsuarioObrigatoria" ForeColor="Red" />
                                </div>
                            </li>
                            <li class="buttons">
                                <div>
				                    <asp:LinkButton ID="lkbSalvar" CssClass="btn ui-state-default ui-corner-all" 
                                        runat="server" onclick="lkbAlterar_Click" ><span class="ui-icon ui-icon-search"></span>Alterar</asp:LinkButton>
			                    </div>
							</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
